﻿using System.Collections.Generic;
using eCommerce.db.DALRespository;
using eCommerce.db.DataRespository;

namespace eCommerce.db.BORespository
{
    public class OrderDetailBo
    {
        public static void Create(OrderDetailEntity o)
        {
            OrderDetailDal.Create(o);
        }

        public static void Delete(int id)
        {
            OrderDetailDal.Delete(id);
        }

        public static List<OrderDetailEntity> GetListByOrderId(int orderId)
        {
            return OrderDetailDal.GetListByOrderId(orderId);
        }

        public static void DeleteAllByOrderId(int orderId)
        {
            OrderDetailDal.DeleteAllByOrderId(orderId);
        }
    }
}
